<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        console.log(this);
        console.log('-====');
        var obj = {
            a:this,
            b:{
                c:this
            }
        }
        console.log('obj.a',obj.a);

        var m = 89;
        console.log('m',m);
        // console.log(m,m);
        console.log('m',m);
    </script>
    <script>
        console.log('>>>>>>>>>>>');
        function f1(){
            console.log('f1',this);
        }
        f1();
        window.f1();

        var cat={
            name:"加菲猫",
            say:function(){
                console.log(this);
            }
        }
        cat.say();
        var ff = cat.say;
        ff();//window
    </script>
</body>
</html>